﻿using SHZY.Common.Const;
using SHZY.Common.Contracts;
using SqlSugar;

namespace SHZY.Business.Entitys;

/// <summary>
/// 收货明细表实体.
/// </summary>
[SugarTable("wms_busi_receive_detail", "收货明细表")]
[Tenant(ClaimConst.TENANTID)]
public class WmsBusiReceiveDetailEntity : CLDEntityBase
{
    /// <summary>
    /// 主表ID.
    /// </summary>
    [SugarColumn(ColumnName = "F_ReceiveId", ColumnDescription = "主表ID")]
    public string ReceiveId { get; set; }

    /// <summary>
    /// 物料id.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialId", ColumnDescription = "物料id")]
    public string MaterialId { get; set; }

    /// <summary>
    /// 物料code.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialCode", ColumnDescription = "物料code")]
    public string MaterialCode { get; set; }

    /// <summary>
    /// 物料名称.
    /// </summary>
    [SugarColumn(ColumnName = "F_MaterialName", ColumnDescription = "物料名称")]
    public string MaterialName { get; set; }

    /// <summary>
    /// 生产日期.
    /// </summary>
    [SugarColumn(ColumnName = "F_ProduceDate", ColumnDescription = "生产日期")]
    public DateTime? ProduceDate { get; set; }

    /// <summary>
    /// 托盘号.
    /// </summary>
    [SugarColumn(ColumnName = "F_PalletNo", ColumnDescription = "托盘号")]
    public string PalletNo { get; set; }

    /// <summary>
    /// 批次号.
    /// </summary>
    [SugarColumn(ColumnName = "F_BatchNo", ColumnDescription = "批次号")]
    public string BatchNo { get; set; }

    /// <summary>
    /// 最小单位.
    /// </summary>
    [SugarColumn(ColumnName = "F_DefaultUnit", ColumnDescription = "最小单位")]
    public string DefaultUnit { get; set; }

    /// <summary>
    /// 采购单位.
    /// </summary>
    [SugarColumn(ColumnName = "F_PoUnit", ColumnDescription = "采购单位")]
    public string PoUnit { get; set; }

    /// <summary>
    /// 数量.
    /// </summary>
    [SugarColumn(ColumnName = "F_Qty", ColumnDescription = "数量")]
    public decimal Qty { get; set; }

    /// <summary>
    /// 系数.
    /// </summary>
    [SugarColumn(ColumnName = "F_Ratio", ColumnDescription = "系数")]
    public decimal Ratio { get; set; }

    /// <summary>
    /// 是否入库：Y/N.
    /// </summary>
    [SugarColumn(ColumnName = "F_StockFlag", ColumnDescription = "是否入库：Y/N")]
    public string StockFlag { get; set; }

    /// <summary>
    /// 库位ID.
    /// </summary>
    [SugarColumn(ColumnName = "F_LocationId", ColumnDescription = "库位ID")]
    public string LocationId { get; set; }

    /// <summary>
    /// 库位编码.
    /// </summary>
    [SugarColumn(ColumnName = "F_LocationCode", ColumnDescription = "库位编码")]
    public string LocationCode { get; set; }
}